/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package cn.com.csg.smartenergy.common;

/**
 * 常量
 *
 * @author Mark sunlightcs@gmail.com
 */
public class Constant {
    /**
     * 未查询到数据
     */
    public static final String QUERY_NO_DATA = "未查询到数据";
    /**
     * 非逻辑删除
     */
    public static final Integer UN_LOGIC_DEL = 0;
    /**
     * 所属行业类型(字典)
     */
    public static final String INDUSTRY = "INDUSTRY";
    /**
     * appName
     */
    public static final String APP_NAME = "csg";
    /**
     * 正斜杠：/
     */
    public static final String FORWARD_SLASH = "/";

    /**
     * 竖杠：|
     */
    public static final String SEPARTOR = "|";

    /**
     * 下划线：_
     */
    public static final String UNDER_LINE = "_";

    /**
     * 消息体
     */
    public static final String MSG_BODY = "body";

    /**
     * 服务ID
     */
    public static final String MSG_SERVICE_ID = "serviceId";

    /**
     * 服务属性
     */
    public static final String MSG_SERVICE_PROPS = "serviceProperties";

    /**
     * 指令名称
     */
    public static final String CMD_METHOD = "method";

    /**
     * 消息时间戳
     */
    public static final String MSG_TIMESTAMP = "timestamp";

    /**
     * 消息token
     */
    public static final String MSG_TOKEN = "token";

    /**
     * 遥信
     */
    public static final String DISCRETE = "discrete";

    /**
     * 拓扑图
     */
    public static final String TOPOLOGY = "topology";

    /**
     * 拓扑图父节点nodeId
     */
    public static final String FATHER_NODE_ID = "FatherNodeID";

    /**
     * 设备状态 online/offline
     */
    public static final String STATE = "state";

    /**
     * 事件时间
     */
    public static final String EVENT_TIME = "event-time";

    /**
     * 数据
     */
    public static final String DATA = "data";

    /**
     * 设备ID
     */
    public static final String DEVICE_ID = "deviceId";

    /**
     * 历史报文分表前缀
     */
    public static final String IOT_DEVICE_MESSAGE = "iot_device_message";

    /**
     * 历史数据分表前缀
     */
    public static final String IOT_DEVICE_DATA = "iot_device_data";

    /**
     * 下线
     */
    public static final String OFFLINE = "OFFLINE";

    /**
     * 上线
     */
    public static final String ONLINE = "ONLINE";

    /**
     * 设备状态队列
     */
    public static final String QUEUE_DEVICE_STATE = "QUEUE_DEVICE_STATE";

    /**
     * 设备上线队列
     */
    public static final String QUEUE_ONLINE = "QUEUE_ONLINE";

    /**
     * 设备下线队列
     */
    public static final String QUEUE_OFFLINE = "QUEUE_OFFLINE";

    /**
     * 设备报文队列
     */
    public static final String QUEUE_DEVICE_MESSAGE = "QUEUE_DEVICE_MESSAGE";

    /**
     * 设备告警队列
     */
    public static final String QUEUE_ALARM = "QUEUE_ALARM";

    /**
     * 拓扑识别队列
     */
    public static final String QUEUE_TOPO_NODE = "QUEUE_TOPO_NODE";
    /**
     * 线损计算
     */
    public static final String QUEUE_LINE_LOSS = "QUEUE_LINE_LOSS";

    /**
     * 解析竖杠：|
     */
    public static final String PARSE_SEPARTOR = "\\|";
}
